package com.ruoyi.system.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

@Data
@TableName("service_record")
public class ServiceRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String serviceType;
    private String serviceTime;
    private String description;

    @TableLogic
    private Integer deleted;

    // 关联的员工列表(多对多)
    @TableField(exist = false)
    private List<Employee> employees;

    public Long getId() {
        return id;
    }

    public List<Employee> getEmployees() {
        return employees;
    }

    public String getDescription() {
        return description;
    }

    public String getServiceTime() {
        return serviceTime;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setServiceTime(String serviceTime) {
        this.serviceTime = serviceTime;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }
}